package com.study.test.demo.factory.abstractFactory;

/**
 * 抽象工厂
 *
 * @Author hupengming
 * @ClassName CourseFactory
 * @Date 2023-03-06  16:05
 * @Version 1.0
 */
public abstract class CourseFactory {

    /**
     * 比如：公共逻辑用抽象类工厂，没有公共逻辑用接口工厂
     */
    public void init(){
        System.out.println("初始化数据");
    }

    protected abstract IVideo createVideo();

    protected abstract INote createNote();


}
